<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>添加/编辑积分商品 - Powered By ${systemConfig.systemName}</title>
<meta name="Author" content="webmall Team" />
<meta name="Copyright" content="webmall" />
<link rel="icon" href="favicon.ico" type="image/x-icon" />
<#include "/WEB-INF/template/common/include.ftl">
<link href="${base}/template/admin/css/input.css" rel="stylesheet" type="text/css" />
<#if !id??>
	<#assign isAdd = true />
<#else>
	<#assign isEdit = true />
</#if>

<script type="text/javascript">
	
</script>
</head>
<body class="input">
	<div class="body">
		<div class="inputBar">
			<h1><span class="icon">&nbsp;</span><#if isAdd??>添加积分商品<#else>编辑积分商品</#if></h1>
		</div>
		
		<form id="inputForm" class="validate" enctype="multipart/form-data" action="<#if isAdd??>pointproduct!save.action<#else>pointproduct!update.action</#if>" method="post">
			<input type="hidden" name="id" value="${id}" />
			<table class="inputTable">
				<tr>
					<th>
						商品名称:
					</th>
					<td>
						<input type="text" name="pointproduct.name" class="formText {required: true}" value="${(pointproduct.name)!}" />
						<label class="requireField">*</label>
					</td>
				</tr>
				<tr>
					<th>
						兑换积分:
					</th>
					<td>
						<input type="text" name="pointproduct.point" class="formText {required: true}" value="${(pointproduct.point)!}" />
						<label class="requireField">*</label>
					</td>
				</tr>
				
				<tr>
					<th>
						封面图片:
					</th>
					<td>
						<input type="file" name="imageUrl" /><#if (pointproduct.imageUrl != null)!>&nbsp;&nbsp;&nbsp;<a href="${base}${pointproduct.imageUrl}" class="imagePreview" target="_blank">查看</a></#if>
					</td>
				</tr>
			
				<tr>
					<th>
						是否可用:
					</th>
					<td>
						<label><input type="radio" name="pointproduct.enable" value="true"<#if (pointproduct.enable == true)!> checked</#if> />是</label>
						<label><input type="radio" name="pointproduct.enable" value="false"<#if (isAdd || pointproduct.enable == false)!> checked</#if> />否</label>
					</td>
				</tr>
				<tr>
					<th>
						商品描述:
					</th>
					<td>
						<textarea name="pointproduct.description"  class="wysiwyg" style="width: 80%; height: 450px;">${(pointproduct.description)!}</textarea>
					</td>
				</tr>
				
				
			</table>
			<div class="buttonArea">
				<input type="submit" class="formButton" value="确  定" hidefocus="true" />&nbsp;&nbsp;&nbsp;&nbsp;
				<input type="button" class="formButton" onclick="window.history.back(); return false;" value="返  回" hidefocus="true" />
			</div>
		</form>
	</div>
	
</body>
</html>